// 常量路由
export const constantRoute = [
    // 登录
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login.vue'),
        meta: {
            title: '登录',
            icon: '登录',
            hidden: false
        }
    },
    // 首页
    {
        path: '/',
        name: 'Index',
        component: () => import('@/views/Layout.vue'),
        redirect: '/home',
        meta: {
            title: 'Layout',
            icon: '首页',
            hidden: true
        },
        children: [
            {
                path: '/home',
                name: 'Home',
                component: () => import('@/views/Home.vue'),
                meta: {
                    title: '首页',
                    icon: '首页',
                    hidden: true
                }
            }
        ]
    },
     // 404页面
     {
        path: '/404',
        name: '404',
        component: () => import('@/views/404.vue'),
        meta: {
            title: '404',
            icon: '404',
            hidden: false
        }
    }
]

// 异步路由
export const asyncRouter = [
    //权限管理
    {
        path: '/acl',
        name: 'Acl',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '权限管理',
            icon: '权限管理',
            hidden: true
        },
        children: [
            {
                path: '/user',
                name: 'User',
                component: () => import('@/views/acl/User.vue'),
                meta: {
                    title: '用户管理',
                    icon: '用户管理',
                    hidden: true
                }
            },
            {
                path: '/role',
                name: 'Role',
                component: () => import('@/views/acl/Role.vue'),
                meta: {
                    title: '角色管理',
                    icon: '角色管理',
                    hidden: true
                }
            },
            {
                path: '/menumanagement',
                name: 'Menumanagement',
                component: () => import('@/views/acl/Menumangement.vue'),
                meta: {
                    title: '菜单管理',
                    icon: '菜单管理',
                    hidden: true
                }
            },
            {
                path: '/adduser',
                name: 'AddUser',
                component: () => import('@/views/acl/AddUser.vue'),
                meta: {
                    title: '添加蓝思用户',
                    icon: '添加用户',
                    hidden: true
                }
            },
            {
                path: '/updatepwd',
                name: 'Updatepwd',
                component: () => import('@/views/acl/Updatepwd.vue'),
                meta: {
                    title: '修改密码',
                    icon: '修改密码',
                    hidden: true
                }
            }
        ]
    },
    // 拣货组
    {
        path: '/picking_team',
        name: 'Picking_team',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '拣货组',
            icon: '拣货组',
            hidden: true
        },
        children: [
            {
                path: '/eu_rework',
                name: 'Eu_rework',
                component: () => import('@/views/picking_team/Eu_rework.vue'),
                meta: {
                    title: '欧盟返工',
                    icon: '欧盟返工',
                    hidden: true
                }
            }
        ]
    },
    // 已包装未发货查询
    {
        path: '/not_shipped',
        name: 'Not_shipped',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '已包装未发货',
            icon: '已包装未发货',
            hidden: true
        },
        children: [
            {
                path: '/not_shipped_query',
                name: 'Not_shipped_Query',
                component: () => import('@/views/not_shipped/query.vue'),
                meta: {
                    title: '未发货查询',
                    icon: '未发货查询',
                    hidden: true
                }
            }
        ]
    },
     // 签单
     {
        path: '/sign_bill',
        name: 'Sign_bill',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '签单组',
            icon: '签单组',
            hidden: true
        },
        children: [
            {
                path: '/qd_print',
                name: 'Qd_print',
                component: () => import('@/views/sign_bill/qd_print.vue'),
                meta: {
                    title: '签单表打印',
                    icon: '签单表打印',
                    hidden: true
                }
            }
        ]
    },
     // 蓝思货位管理
     {
        path: '/slot_management',
        name: 'Slot_management',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '蓝思货位管理',
            icon: '包装组',
            hidden: true
        },
        children: [
            {
                path: '/assign_slot',
                name: 'Assign_slot',
                component: () => import('@/views/slot_management/assign_slot.vue'),
                meta: {
                    title: '货位分配',
                    icon: '货位分配',
                    hidden: true
                }
            },
            {
                path: '/slot_outbound',
                name: 'Slot_outbound',
                component: () => import('@/views/slot_management/slot_outbound.vue'),
                meta: {
                    title: '货位出库',
                    icon: '货位出库',
                    hidden: true
                }
            },
            {
                path: '/slot_upkeep',
                name: 'Slot_upkeep',
                component: () => import('@/views/slot_management/slot_upkeep.vue'),
                meta: {
                    title: '货位维护',
                    icon: '货位维护',
                    hidden: true
                }
            },
            {
                path: '/slot_query',
                name: 'Slot_query',
                component: () => import('@/views/slot_management/slot_query.vue'),
                meta: {
                    title: '合同货位查询',
                    icon: '合同货位查询',
                    hidden: true
                }
            },
            {
                path: '/inventory_query',
                name: 'Inventory_query',
                component: () => import('@/views/slot_management/inventoryQuery.vue'),
                meta: {
                    title: '库存查询',
                    icon: '库存查询',
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/package_material',
        name: 'Package_material',
        component: () => import('@/views/Layout.vue'),
        meta: {
            title: '包材日常管理',
            icon: '包材管理',
            hidden: true
        },
        children: [
            {
                path: '/basic_maintenance',
                name: 'Basic_maintenance',
                component: () => import('@/views/package-material/basic-maintenance.vue'),
                meta: {
                    title: '基表维护',
                    icon: '基表维护',
                    hidden: true
                }
            },
            {
                path: '/storage_in',
                name: 'Storage_in', 
                component: () => import('@/views/package-material/storage-in.vue'),
                meta: {
                    title: '入库',
                    icon: '入库',
                    hidden: true
                }
            },
            {
                path: '/storage_out',
                name: 'Storage_out',
                component: () => import('@/views/package-material/storage-out.vue'),
                meta: {
                    title: '出库',
                    icon: '出库',
                    hidden: true
                }
            },
            {
                path: '/report-query',
                name: 'Report-query',
                component: () => import('@/views/package-material/report-query.vue'),
                meta: {
                    title: '报表查询',
                    icon: '报表查询',
                    hidden: true
                }
            }
        ]
    }
]



//任意路由
export const anyRoute = {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      hidden: false,
      icon: '任意路由',
    },
  }